package DesignPatern.A09_命令模式.QSB.A02_抽象模式;

/**
 * @Author: Du
 * @Date: 2021/7/23 15:11
 *
 * 命令2
 *
 */
public class ConcreteCommand2 extends Command
{
    private Receiver receiver;
    
    public ConcreteCommand2(Receiver receiver1)
    {
        this.receiver = receiver1;
    }
    
    @Override
    public void execute()
    {
        this.receiver.doSomething();
    }
}
